<!-- 下拉选择模板 -->
<#macro chosen placeholder="" multiple=false options=[] name="">
    <#if multiple>
    <select data-placeholder="${placeholder}" class="chosen-select form-control" multiple name="${name}">
    <#else >
    <select data-placeholder="${placeholder}" class="chosen-select form-control" name="${name}">
    </#if>
    <option value=""></option>
    <#list options as option>
        <option value="${option.id}">${(option.name)!""}</option>
    </#list>
    </select>
    <script>
        $(".chosen-select").chosen();
    </script>
</#macro>